#coding: utf-8

import numpy as np
import matplotlib.pyplot as plt

x = [0.1*n for n in range(100)]
y = np.cos(x)

ffty = np.fft.fft(y)

plt.subplot(2,1,1)
plt.plot(y)
plt.subplot(2,1,2)
plt.plot(ffty)
plt.show()
